<template>
  <div>
    编号或名称：<el-input v-model="input" placeholder="请输入编号或名称" style="width: 200px;margin-left: 20px;"></el-input>
    <el-checkbox v-model="checked" style="margin-left: 20px">显示禁用人员</el-checkbox>
    <el-button type="primary" style="margin-left: 20px">查询</el-button>
    <el-table :data="gridData" style="width: 100%;margin-top: 10px;" height="400">
        <el-table-column type="selection" width="55">
        </el-table-column>
        <el-table-column width="300" property="employeeCode" label="职员编号"></el-table-column>
        <el-table-column width="300" property="employeeName" label="职员名称"></el-table-column>
    </el-table>
    <el-pagination style="position: relative;left: 30px;" @size-change="handleSizeChange"
      @current-change="handleCurrentChange" :current-page="currentPage5" :page-sizes="[100, 200, 300, 400]"
      :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="400">
    </el-pagination>
  </div>
</template>

<script>
export default {
  data() {
    return {
      currentPage5: 4,
      gridData: [{
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, { 
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }, {
        employeeCode: 'a001',
        employeeName: '王小虎',
      }]
    }
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    }
  }
}
</script>

<style>
.el-table /deep/ .el-table__footer-wrapper tbody td {
  background-color: #fff1d4;
}

.el-table /deep/ .el-table__body tr:hover>td {
  background-color: #fff1d4;
}
</style>